package fr.cephb.operonj.core.bio;

import fr.cephb.operonj.core.db.key.BuildChrom;

public class ChromInfo
	extends BuildChrom
	{
	public enum FLAG
		{
		autosomal,sexual,mitochondrial
		}
	private static final long serialVersionUID = 1L;
	private String name;
	private int length;
	private FLAG flag=FLAG.autosomal;
	
	
	
	public ChromInfo(int buildId, int chromId, String name, int length,
			FLAG flag)
		{
		super(buildId,chromId);
		if(name==null) throw new IllegalArgumentException("name=null");
		this.name = name;
		this.length = length;
		this.flag = (flag==null?FLAG.autosomal:flag);
		}

	public String getName()
		{
		return name;
		}
	public int getLength()
		{
		return length;
		}
	public FLAG getFlag()
		{
		return flag;
		}
	}
